import request from '@/utils/request'

// 查询电影厅列表
export function listShow(query) {
  return request({
    url: '/system/show/list',
    method: 'get',
    params: query
  })
}

// 查询电影厅详细
export function getShow(id) {
  return request({
    url: '/system/show/' + id,
    method: 'get'
  })
}

// 新增电影厅
export function addShow(data) {
  return request({
    url: '/system/show',
    method: 'post',
    data: data
  })
}

// 修改电影厅
export function updateShow(data) {
  return request({
    url: '/system/show',
    method: 'put',
    data: data
  })
}

// 删除电影厅
export function delShow(id) {
  return request({
    url: '/system/show/' + id,
    method: 'delete'
  })
}

// 导出电影厅
export function exportShow(query) {
  return request({
    url: '/system/show/export',
    method: 'get',
    params: query
  })
}

export function searchCinema() {
  return request({
    url: '/system/show/searchCinema',
    method: 'get'
  })
}

export function searchShow() {
  return request({
    url: '/system/show/searchShow',
    method: 'get'
  })
}